<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="http://localhost/shopex/" />
<link rel="stylesheet" type="text/css" href="App/Admin/Common/images/metinfo.css" />
<script type="text/javascript" src="App/Admin/Common/ckeditor/ckeditor.js"></script>
<link rel="stylesheet" href="App/Admin/Common/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="App/Admin/Common/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="App/Admin/Common/kindeditor/lang/zh_CN.js"></script>
<script>
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="content"]', {
					allowFileManager : true
				});
				
			});
</script>
<script charset="utf-8" src="App/Admin/Common/js/jQuery1.7.2.js"></script>


<link rel="stylesheet" type="text/css" href="App/Admin/Common/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="App/Admin/Common/css/bootstrap-responsive.css" />
<link rel="stylesheet" type="text/css" href="App/Admin/Common/css/style.css" />
<style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


</style>
</head>

<body>

	<div class="metinfotop">
	<div class="position">简体中文：角色管理 > <a href="javascript:void(0)"><?php echo ($lang); ?>角色</a></div>

	</div>
	<div class="clear"></div>


<div class="stat_list">
	<ul>
		<li class="now"><a href="index.php/admin/role/save" title="<?php echo ($lang); ?>角色"><?php echo ($lang); ?>角色</a></li>
		<li><a href="index.php/admin/role/list" title="角色列表">角色列表</a></li>
	</ul>
</div>
<form method="post" name="myform" action="index.php/admin/role/save/id/<?php echo ($one["id"]); ?>" target="_self">
<table class="table table-bordered table-hover definewidth m10">
    <tr>
        <td width="10%" class="tableleft">角色名称</td>
        <td><input type="text" id="name" name="name" value="<?php echo ($one["name"]); ?>"/><span></span></td>
    </tr>
     
    <tr>
        <td class="tableleft">状态</td>
        <td>
            <input type="radio" id="checkyn" name="status" value="1" <?php if($one['status'] == 1): ?>checked="checked"<?php endif; ?> /> 启用
            <input type="radio" id="checkyn" name="status" value="0" <?php if($one['status'] == 0): ?>checked="checked"<?php endif; ?> /> 禁用
        </td>

    </tr>

    <tr>
        <td class="tableleft"></td>
        <td>
            <button type="submit" class="btn btn-primary" >保存</button> &nbsp;&nbsp;<button type="submit" class="btn btn-success" name="backid" id="backid">返回列表</button>
        </td>
    </tr>
</table>
</form>

</body>
</html>
<script>
    $(function () {       
		$('#backid').click(function(){
				window.location.href="index.php/admin/admin/list";
		 });

    });
</script>